#ifndef __USER_WIFI_H__
#define __USER_WIFI_H__

#include "esp_err.h"
#include "esp_http_server.h"

#define MDNS_ENABLE 0

typedef enum {
    WIFI_ACTION_NONE = 0,
    WIFI_ACTION_START,
    WIFI_ACTION_STOP,
    WIFI_ACTION_RESTART,
} wifi_action_t;

void user_wifi_init(void);
void user_set_wifi_state(wifi_action_t action);
void user_wifi_updateConfig(char *ssid, char *pass);

// http 相关
esp_err_t http_server_start(void);
void http_server_stop(void);

#if MDNS_ENABLE
void user_mdns_init(void);
#endif

#endif // __USER_WIFI_H__